

$(function(){
    $('#submitShopAuthentication').click(function(){
        if($('#receiverName').val()==''){
            alert('请填写送货人名字');
            return;
        }
        if($('#receiverPhone').val()==''){
            alert('请填写手机号码');
            return;
        }
        $.ajax({
            url : ctx+'/sender/add.do',
            data : {
                name:$('#receiverName').val(),
                phone:$('#receiverPhone').val(),
            },
            success : function(data){
                if(data.flag>0)
                    getPage($("#senderManagePageA")[0],ctx+'/user/senderManagePage.do');
            }
        });

    });
});